home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr35 / lul2maxd.zip / LUL2CHEK.BAT < prev    next >
DOS Batch File  |  1993-05-09  |  1KB  |  43 lines

  1. @echo off
  2. rem
  3. rem  This batch file will run during a local upload if you have Process: ON
  4. rem
  5. rem
  6. rem  *Note*
  7. rem  If you are uploading to drive A:\ or the C:\ directory, Maximus passes
  8. rem  the variables with a backslash, so a %1\%2 that works for all of your
  9. rem  file areas would show up here as A:\\ instead of A:\.
  10. rem
  11. rem  To take into account the fact that you may Override the path and upload
  12. rem  to A: or C:\, each command in this batch file should be issued twice -
  13. rem  once using "if exist %1%2" for A:\ and/or C:\ and once using
  14. rem  "if exist %1\%2" for other directories.
  15. rem
  16. rem
  17. rem    Example:
  18. rem
  19. rem    To run a program called Zipup on a file during a local upload.
  20. rem
  21. rem        if exist %1\%2 zipup %1\%2 c:\max\photo334.txt
  22. rem        if exist %1%2 zipup %1%2 c:\max\photo334.txt
  23. rem
  24. rem  Of course if you never be overriding the path to the A: drive or the
  25. rem  C:\ directory, and uploading with Process: ON, you can ignore the
  26. rem  "if exist" commands and simply use:
  27. rem
  28. rem        zipup %1%2 c:\max\photo334.txt
  29. rem
  30. rem    The variables passed to this batch files are:
  31. rem
  32. rem             %1 current file area (with trailing \ if A: or C:\)
  33. rem             %2 file that was locally uploaded
  34. rem
  35. rem
  36. rem    Remove the following commands and add your own:
  37. if exist %1\%2 zipup %1\%2 c:\max\photo334.txt
  38. if exist %1%2 zipup %1%2 c:\max\photo334.txt
  39. if exist %1\%2 redate %1\%2
  40. if exist %1%2 redate %1%2
  41.  
  42.  
  43.